netfilter: nf_tables: stricter validation of element data
Origin: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit?id=
0a5e36dbcb448a7a8ba63d1d4b6ade2c9d3cc8bf
Bug-Debian-Security: https://security-tracker.debian.org/tracker/CVE-2022-34918
commit
7e6bc1f6cabcd30aba0b11219d8e01b952eacbb6 upstream.
Make sure element data type and length do not mismatch the one specified
by the set declaration.
Fixes: 7d7402642eaf ("netfilter: nf_tables: variable sized set element keys / data")
Reported-by: Hugues ANGUELKOV <hanguelkov@randorisec.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name netfilter-nf_tables-stricter-validation-of-element-d.patch